package com.lotusfall;

import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

//@RunWith(SpringRunner.class)
@SpringBootTest
public class testRedis {
    @Autowired
    private StringRedisTemplate stringRedisTemplate;
    @Test
    public void testRedis1(){
        stringRedisTemplate.opsForValue().set("key1","value1");
    }
}
